#ifndef toptions_H
#define toptions_H 1

#include <TObject.h>
#include <TROOT.h>
#include <TCutG.h>
#include <TDatime.h>

#define MAX_CH 32 //max number of channels
#define MAX_R 4 //number of channel types (gam,ng,nim,off)
#define MAX_P 5 //particle types (g,n,t,u,p)

class Toptions: public TObject {
 public:
  Toptions();
  virtual ~Toptions() {};

  int gam_thresh;
  float gam_elim1,gam_elim2;
  int gam_border1,gam_border2;
  int gam_pile1,gam_pile2;

  int ng_thresh;
  float ng_elim1,ng_elim2;
  int ng_border1,ng_border2;
  int ng_pile;

  int nim_thresh1,nim_thresh2;

  int tdc_bins1,tdc_bins2;
  int starts_thr1,starts_thr2;
  float beam1,beam2;
  float wgam1,wgam2;
  float wneu1,wneu2;
  float wtail1,wtail2;

  int nsmoo;
  int start_ch;
  int psd_ch;
  int num_events;

  float tplus;

  int b_gcut,b_osc,b_leg,b_logy,b_time;
  int draw_opt;

  int Tstart,Tstop;

  int channels[MAX_CH+1]; //+all
  int color[MAX_CH+1+MAX_P]; //+all+MAX_P
  char chname[MAX_CH+1][16]; //+all

  TCutG *gcut[3];

  double vmon[6];

  TDatime F_start,F_stop;

  float Ecalibr[2];

  int Nevt;
  double Tof;

  ClassDef(Toptions, 18)
};

ClassImp(Toptions)

#endif
